﻿/*
 * ©2009-2011 XELF
 * http://xelf.info
 */

#if XNA || WINDOWS_PHONE
using Microsoft.Xna.Framework;
#endif

namespace XELF.Framework {
#if XNA || WINDOWS_PHONE
	public static partial class MatrixHelper {
#else
	public partial struct Matrix {
#endif
		/// <summary>
		/// 外積行列を作る。
		/// </summary>
		/// <param name="value"></param>
		/// <param name="result"></param>
		public static void CreateCrossProduct(ref Vector3 value, out Matrix result) {
			result = new Matrix(
				0, -value.Z, value.Y, 0,
				value.Z, 0, -value.X, 0,
				-value.Y, value.X, 0, 0,
				0, 0, 0, 1);
		}
	}

}
